import axios from 'axios'
export const Axios = axios.create({
  baseURL: 'http://liufusong.top:8080'
  // timeout: 20000
})
export const baseURL = 'http://liufusong.top:8080'
export default ({ url, method = 'GET', params, data, headers }) => {
  return Axios({
    url,
    method,
    params,
    data,
    headers
  })
}
